<html>
<head>
<title><?php echo $cfg_webname;?> - 用户注册</title>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="keywords" content="{dede:field name='keywords' function='html2text(@me)'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />

{dede:include filename="plus_header.htm"/}
<!-- /header -->
<main>
<!-- 面包屑 -->
{dede:include filename="plus_breadcrumb.htm"/}
<!-- /面包屑 -->
<section class="uk-section uk-section-default uk-section-smalle">
<div class="uk-container uk-container-small">
<div class="uk-article">
<h2 class="uk-text-bold uk-h2 uk-margin-remove-adjacent uk-margin-remove-top">用户注册</h2>



<form method="post" action="users-reg-new.php" id="regUser" name="form2" class="uk-form uk-width-2-3@m">
<input type="hidden" value="regbase" name="dopost" />
<input type="hidden" value="1" name="step" />
<input type="hidden" value="个人" name="mtype" />
<input type="hidden" name="gourl" value="<?php if(!empty($gourl)) echo RemoveXSS($gourl);?>">
<fieldset class="uk-fieldset">

  <div class="uk-margin">
    <div class="uk-width-1-1">
      <div class="uk-margin-small">
        <span>会员注册协议：</span>
      </div>
      <ul class="uk-list uk-list-decimal">
        <li>在本站注册的会员，必须遵守《互联网电子公告服务管理规定》，不得在本站发表诽谤他人，侵犯他人隐私，侵犯他人知识产权，传播病毒，政治言论，商业讯息等信息。</li>
        <li>在所有在本站发表的文章，本站都具有最终编辑权，并且保留用于印刷或向第三方发表的权利，如果你的资料不齐全，我们将有权不作任何通知使用你在本站发布的作品。</li>
        <li>在登记过程中，您将选择注册名和密码。注册名的选择应遵守法律法规及社会公德。您必须对您的密码保密，您将对您注册名和密码下发生的所有活动承担责任。</li>
      </ul>
    </div>
    </div>


  <div class="uk-margin-small">
    <div class=" uk-width-1-1">
      <span>帐号类型：</span>
      <?php if(!file_exists(DEDEDATA.'/cache/member_model.inc')) {
        $dsql->SetQuery("SELECT * FROM `#@__member_model` WHERE state='1'");
        $dsql->Execute();
       while($row=$dsql->GetObject())
       {
           $_MemberMod[$row->id]=array($row->name,$row->table);
        }
    } else {
            require_once DEDEDATA.'/cache/member_model.inc';
    }
      foreach ($_MemberMod as $type)
      {
          if($type[0] == '个人') echo ' <label><input type="radio" class="uk-radio" name="mtype" value="'.$type[0].'" checked/> ';
          elseif($type[0] == '企业') echo ' <label><input type="radio" class="uk-radio" name="mtype" value="'.$type[0].'" /> ';
          else echo ' <label><input type="radio" class="uk-radio" name="mtype" value="'.$type[0].'" /> ';
          echo $type[0], '</label> &nbsp;&nbsp;&nbsp;&nbsp;';
      }
    ?>
    </div>
    </div>


<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: person"></span>
<input class="uk-input" required placeholder="用户名" type="text" name="userid">
</div>
</div>

<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: person-badge"></span>
<input class="uk-input" required placeholder="昵称" type="text" name="uname">
</div>
</div>

<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: shield-lock"></span>
<input class="uk-input" required placeholder="密码" type="password" name="userpwd">
</div>
</div>

<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: key"></span>
<input class="uk-input" required placeholder="密码确认" type="password" name="userpwdok">
</div>
</div>

<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: envelope"></span>
<input class="uk-input" required placeholder="电子邮箱" type="text" name="email">
</div>
</div>


<?php if(preg_match("/1/",$safe_gdopen)){ ?>
<div class="uk-margin" uk-grid>
<div class="uk-inline uk-width-1-2">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: code"></span>
<input class="uk-input" required placeholder="验证码" type="text" name="vdcode" />
</div>
<div class="uk-margin-small uk-inline uk-width-1-2 uk-flex uk-flex-middle">
<img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'"
style="cursor: pointer;" alt="看不清？点击更换"
src="{dede:global.cfg_phpurl/}/vdimgck.php" />&nbsp;&nbsp;&nbsp;&nbsp;
</div>
</div>
<?php } ?>



<div class="uk-margin-small">
<div class=" uk-width-1-1">
<span >性别：</span>
<input type="radio" class="uk-radio" value="男" name="sex" /> 男 &nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" class="uk-radio" value="女" name="sex" /> 女 &nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" class="uk-radio" checked="checked" value="" name="sex" /> 保密
</div>
</div>





<div class="uk-margin-small">
<div class="uk-width-1-1 uk-text-right">
<input type="checkbox" class="uk-checkbox" id="agree" name="agree" /> 我已阅读并完全接受服务协议
</div>
</div>

<div class="uk-margin-small">

<button type="submit" onclick="this.form.submit();" class="uk-button uk-button-primary uk-width-1-1">注册</button>
</div>

</fieldset>
</form>

</div>
</div>
</section>
<!-- //底部模板 -->
{dede:include filename="plus_footer.htm"/}
</body>
</html>

